#pragma once
#include <iostream>
#include <string>
#include <vector>
#include <fstream>
using namespace std;

#include "Identity.h"

#include "ComputerRoom.h"

#include "globalFile.h"

#include "OrderFile.h"


//学生类
class Student: public Identity
{
public:
    //学生学号
    int id;

    //机房容器
    vector<ComputerRoom>vCom;

    //默认构造
    Student();
    
    //有参构造  参数：学号、姓名、密码
    Student(int id, string name, string password);
    
    //菜单界面
    virtual void openMenu();
    
    //申请预约
    void applyOrder();

    //查看自身预约
    void showMyOrder();

    //查看所有预约
    void showAllOrder();

    //取消预约
    void cancelOrder();
};